package com.wohuijituan.whcsmerchant.callback;

import com.google.gson.Gson;
import com.wohuijituan.whcsmerchant.bean.IncomeListBean;
import com.wohuijituan.whcsmerchant.utils.LogUtils;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by zsy_18 on 2017/1/9.
 */

public abstract class IncomeListCallBack extends Callback<IncomeListBean> {
    private final String TAG = "IncomeListCallBack" ;
    @Override
    public IncomeListBean parseNetworkResponse(Response response, int id) throws Exception {
        String str = response.body().string();
        LogUtils.e(TAG, "json:" + str);
        return new Gson().fromJson(str,IncomeListBean.class);
    }
}
